package com.bestcem.xm.award.service.dto.requestaward;

import com.bestcem.xm.award.enums.AwardTypeEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 奖励方式为微信红包，返回结果
 *
 * @author jie.yao <jie.yao@idiaoyan.com>
 * @version v1.0
 * @date 2021/7/1 20:04
 */
@ToString
@NoArgsConstructor
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RedPacketAwardDTO {

    /**
     * 奖励类型 {@link AwardTypeEnum}
     */
    @JsonProperty("ttype")
    private Integer tType;

    /**
     * AWARD_REQUEST表主键
     */
    private String requestId;

    /**
     * award信息
     */
    private Award award;

    /**
     * 获取微信用户code接口url
     */
    private String url;

    /**
     * award信息
     */
    @ToString
    @NoArgsConstructor
    @Getter
    @Setter
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class Award {

        /**
         * 奖励id
         */
        private String awardId;

        /**
         * 投放id
         */
        private String deliverId;

        /**
         * 答卷id
         */
        private String surveyId;

        /**
         * 答卷唯一标识
         */
        private Long surveySeq;

        /**
         * 签名
         */
        private String sig;
    }
}
